public class Person {
    public String name;
    public int age;
    public char gender;

    public void eat() {
        System.out.println("吃饭");
    }

    public void sleep(int hour) {
        System.out.println("保持" + hour + "小时的睡眠");
    }

    public void interests(String hobby) {
        System.out.println("我的爱好是：" + hobby);
    }

}
